package vip.xiaonuo.biz.modular.event.util;

import java.util.ArrayList;
import java.util.List;

public class EventDescUtil {

    /**
     * 提取事件描述关键字
     * @param desc
     * @return
     */
    public static List<String> extractKeyword(String desc){
        List<String> result = new ArrayList<>();
        String[] split = desc.split("\\{\\{");
        for(int i=1;i<split.length;i++){
            result.add(split[i].substring(0,split[i].indexOf("}}")));
        }
        return result;
    }
}
